package negocio;

import java.io.File;
import java.io.IOException;
import javax.swing.JOptionPane;


public class Util {
    
    public static void erro(String msg){
        JOptionPane.showMessageDialog(null, msg, "", JOptionPane.ERROR_MESSAGE);
    }
    
    public static void info(String msg){
        JOptionPane.showMessageDialog(null, msg, "", JOptionPane.INFORMATION_MESSAGE);
    }

    public static void criaArquivo(String csv) throws IOException {
        File f = new File(csv);
        f.delete();
        f.createNewFile();
    }
}
